#ifndef EDITROLL_H
#define EDITROLL_H

#include"unitsearch.h"
//#include"savesucceed.h"
//class SaveSUcceed;
class Widget;
#include"widget.h"

namespace Ui {
class editroll;
}

class editroll : public QDialog
{
    Q_OBJECT

public:
    explicit editroll(QWidget *parent = 0);
    ~editroll();

private slots:
    void receiverid(QString rid);

    void receiveData(QString data);

    void on_save_clicked();

    void on_DeleteUnit_clicked();

    void on_DeleteCadre_clicked();

    void on_UnitUp_clicked();

    void on_UnitDown_clicked();

    void on_CadreUp_clicked();

    void on_CadreDown_clicked();

    void on_AddUnit_clicked();

    void on_giveup_clicked();

    void on_CadreInformation_cellClicked(int row, int column);

private:
    Ui::editroll *ui;

    void moveRow( QTableWidget *pTable, int nFrom, int nTo );//yidong

    // 复制行
    void copyRow( QTableWidget *pTable, int nFrom, int nTo );

    signals:
    void bbb();
};

#endif // EDITROLL_H
